<%--
  Created by IntelliJ IDEA.
  User: WanMing
  Date: 2018/12/19
  Time: 19:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title>中国移动计费系统</title>
    <link rel="stylesheet"
          href="${ctx}/resources/css/pintuer.css">
    <link rel="stylesheet"
          href="${ctx}/resources/css/admin.css">
    <script src="${ctx}/resources/js/jquery.js"></script>
    <script type="text/javascript" src="${ctx}/resources/layui/layui.js"></script>
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
        <h1>
            <img src="${ctx}/resources/images/y.jpg"
                 class="radius-circle rotate-hover" height="50" alt=""/>中国移动计费系统
        </h1>
    </div>
    <div class="head-l">
        <a class="button button-little bg-green" href="" target="_blank"><span
                class="icon-home"></span> 前台首页</a> &nbsp;&nbsp;<a href="##"
                                                                  class="button button-little bg-blue"><span
            class="icon-wrench"></span>
        清除缓存</a> &nbsp;&nbsp;<a class="button button-little bg-red"
                                href="javascript:void(0)" id="logoutSafely"><span
            class="icon-power-off"></span> 退出登录</a>
    </div>
</div>
<div class="leftnav">
    <div class="leftnav-title">
        <strong><span class="icon-list"></span>操作菜单</strong>
    </div>
    <h2>
        <span class="icon-user"></span>系统管理
    </h2>
    <ul style="display:block">

        <h2>
            <span class="icon-bookmark"></span>操作员管理
        </h2>
        <ul>
            <shiro:hasRole name="Y">
                <li><a href="${ctx}/operator/toLoadAllOperator.action"
                       target="right"><span class="icon-caret-right"></span>操作员列表</a>
                </li>

                <li><a href="${ctx}/operator/toLoadAllOperator.action"
                       target="right"><span class="icon-caret-right"></span>扩展功能一</a>
                </li>
            </shiro:hasRole>
        </ul>

        <h2>
            <span class="icon-bookmark"></span>资源管理
        </h2>
        <ul>
            <li><a href="${ctx}/mobile/toAddMobile.action"
                   target="right"><span class="icon-caret-right"></span>资源管理</a>
            </li>

            <li><a href="${ctx}/mobile/toAddMobile.action"
                   target="right"><span class="icon-caret-right"></span>扩展功能一</a>
            </li>

        </ul>


        <h2>
            <span class="icon-bookmark"></span>业务管理
        </h2>
        <ul>
            <li><a href="${ctx}/charge/toUpdateCharge.action"
                   target="right"><span class="icon-caret-right"></span>配置业务</a>
            </li>

            <li><a href="${ctx}/goods.action?method=queryAllGoods"
                   target="right"><span class="icon-caret-right"></span>业务拓展</a>
            </li>

        </ul>


        <h2>
            <span class="icon-bookmark"></span>开户管理
        </h2>
        <ul>
            <li><a href="${ctx}/order.action?method=queryAllOrder"
                   target="right"><span class="icon-caret-right"></span>开户</a>
            </li>

        </ul>

       <%-- <h2>
            <span class="icon-bookmark"></span>系统帮助
        </h2>
        <ul>
            <li><a href="${ctx}/order.action?method=queryAllOrder"
                   target="right"><span class="icon-caret-right"></span>系统帮助</a>
            </li>
        </ul>--%>

       <%-- <h2>
            <span class="icon-bookmark"></span>查询信息
        </h2>
        <ul>
            <li><a href="${ctx}/order.action?method=queryAllOrder"
                   target="right"><span class="icon-caret-right"></span>查询信息</a>
            </li>

        </ul>--%>

        <%-- <h2>
             <span class="icon-bookmark"></span>7.退出系统
         </h2>
         <ul>

                 <li><a href="javascript:void(0)" id="logoutSafely"
                        target="right"><span class="icon-caret-right"></span>退出系统</a>
                 </li>

         </ul>--%>

    </ul>
    <h2>
        <span class="icon-pencil-square-o"></span>个人管理
    </h2>
    <ul>
        <li><a
                href="${ctx}/admin.action?method=toUpdateAdmin"
                target="right"><span class="icon-caret-right"></span>修改密码</a></li>
    </ul>
</div>

<ul class="bread">
    <li><a href="${ctx}/login/info.action" target="right" class="icon-home">
        首页</a></li>
    <li><a href="##" id="a_leader_txt">网站信息</a></li>
    <li><b>当前语言：</b><span style="color:red;">中文</span>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;切换语言：<a href="##">中文</a> &nbsp;&nbsp;<a
                href="##">英文</a></li>
</ul>
<div class="admin" style="margin: 0;padding: 0">
    <iframe scrolling="auto" frameborder="0"
            src="${ctx}/login/info.action" name="right"
            width="100%" height="100%"></iframe>
</div>

<script type="text/javascript">
    $(function () {
        $(".leftnav h2").click(function () {
            $(this).next().slideToggle(200);
            $(this).toggleClass("on");
        });
        $(".leftnav ul li a").click(function () {
            $("#a_leader_txt").text($(this).text());
            $(".leftnav ul li a").removeClass("on");
            $(this).addClass("on");
        });

        /**
         * 安全退出系统
         */
        $("#logoutSafely").click(function () {
            layui.use("layer", function () {
                var layer = layui.layer;
                layer.confirm('感谢使用本系统,真的要退出吗？', {icon: 3, title: '提示'}, function (index) {
                    //do something回调函数
                    $.post("${ctx}/logout/logout.action", function (result) {
                        if (result.code == 1) {
                            window.top.location.href = "${ctx}/index.jsp";
                        }
                    }, 'json');
                    layer.close(index);
                })
            });
        });
    });


</script>
</body>
</html>
